package com.hsc.www.common;

import com.alibaba.fastjson.JSONObject;

import java.util.List;

/**
 * {
 * "exp": 1558803031,
 * "user_name": "admin",
 * "authorities": [
 * "ROLE_Admin"
 * ],
 * "jti": "d191d78f-c7db-4d35-93ca-50be1cedb69f",
 * "client_id": "client1",
 * "scope": [
 * "dog",
 * "cat"
 * ]
 * }
 */

public class CheckToken {
    private Long exp;
    private String user_name;
    private List<String> authorities;
    private String jti;
    private String client_id;
    private List<String> scope;

    public Long getExp() {
        return exp;
    }

    public void setExp(Long exp) {
        this.exp = exp;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public List<String> getAuthorities() {
        return authorities;
    }

    public void setAuthorities(List<String> authorities) {
        this.authorities = authorities;
    }

    public String getJti() {
        return jti;
    }

    public void setJti(String jti) {
        this.jti = jti;
    }

    public String getClient_id() {
        return client_id;
    }

    public void setClient_id(String client_id) {
        this.client_id = client_id;
    }

    public List<String> getScope() {
        return scope;
    }

    public void setScope(List<String> scope) {
        this.scope = scope;
    }

    @Override
    public String toString() {
        return JSONObject.toJSONString(this);
    }
}
